const pkg = require('./package')


module.exports = {
  mode: 'universal',

  /*
  ** Headers of the page
  */
  head: {
    title: "叶绍君个人博客",
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '叶绍君的个人网站，记录生活的瞬间，分享学习的心得，全栈工程师，前端工程师'},
      { name: 'keywords', content: '学习 , 学习方法 , 思维导图 ， 笔记 , 快速学习 , react, PPT, Vue, 电影, 思考, 读书, 写作, 思考, 美男子, 叶绍君'}
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ],
    script: [
      {type: 'text/javascript', color: "220,220,220", opacity: '0.7', zIndex:"-2", count:"200", src: "//cdn.bootcss.com/canvas-nest.js/1.0.0/canvas-nest.min.js"}
    ],
  },

  /*
  ** Customize the progress-bar color
  */
  loading: { color: '#fff' },

  /*
  ** Global CSS
  */
  css: [
    'assets/stylus/main.css',
    'assets/stylus/index.styl',
    'static/fonts/iconfont.css'
    // 'element-ui/lib/theme-default/index.css'

  ],

  /*
  ** Plugins to load before mounting the App
  */
  plugins: [
    '~plugins/element_ui',
    '~plugins/mavonEditor'
  ],

  /*
  ** Nuxt.js modules
  */
  modules: [
  ],

  /*
  ** Build configuration
  */
  build: {
    /*
    ** You can extend webpack config here
    */
    extend(config, ctx) {

    }
  },
  modules: [
    '@nuxtjs/axios',
    '@nuxtjs/proxy'
  ],
  proxy: [
    ['/api', {
      target: 'https://api.yeshaojun.com'
    }]
  ]
}
